package com.sos.comm {

	public class CallFactory
	{
		
		// Services
		public static const		CALL_OLD_LOGIN:String 					= "v2/checkLogin.php";				// IN > username=<value>&username=<value>	OUT > username":"","password":"","finalresponse":"Login Effettuato","logged":true,"userID":"3","deckID":"2"}
		public static const		CALL_LOGIN:String 						= "v2/fullLogin.php";				// IN > username=<value>&username=<value>	OUT > username":"","password":"","finalresponse":"Login Effettuato","logged":true,"userID":"3","deckID":"2"}
		public static const		CALL_USER_GAME_LIST:String				= "v2/getGames.php"					// IN > password=1111&userID=1				OUT > {"result":0,"error":null,"data":{"gameCount":0}}
		public static const		CALL_USER_FRIENDS_LIST:String			= "v2/getFriendList.php"			// IN > password=1111&userID=1
		public static const		CALL_CARD_MANAGER_LOAD:String 			= "v2/getCardList.php";				// IN > userID=<value>						OUT > {"deckCount":2,"list":[{"id":"1","name":"LouTeam","active":"1"},{"id":"17","name":"LouBackup","active":"0"}]}
		public static const		CALL_COLLECTION_LOAD:String 			= "v2/getCollection.php";			// IN > userID=<value>						OUT > {"deckCount":2,"list":[{"id":"1","name":"LouTeam","active":"1"},{"id":"17","name":"LouBackup","active":"0"}]}
		public static const		CALL_COLLECTION_LOAD_COMPACT:String 	= "v2/getCollectionCompact.php";	// IN > userID=<value>						OUT > {"deckCount":2,"list":[{"id":"1","name":"LouTeam","active":"1"},{"id":"17","name":"LouBackup","active":"0"}]
		public static const		CALL_DECK_LIST:String 					= "v2/getDeckList.php"; 			// IN > userID=<value>						OUT > 
		public static const		CALL_DECK_LOAD:String 					= "v2/getDeck.php";					// IN > userID=<value>&deckID=<value>		OUT > 
		public static const		CALL_DECK_SAVE:String 					= "v2/saveDeck.php";
		public static const		CALL_DECK_NEW:String 					= "v2/newDeck.php"; 				// IN > userID=<value>&deckName=<value>		OUT >
		public static const		CALL_DECK_DELETE:String 				= "v2/delDeck.php"; 				// IN > userID=<value>&deckID=<value>		OUT >
		public static const		CALL_DECK_SET_ACTIVE:String				= "v2/setActiveDeck.php"; 			// IN > userID=<value>&deckID=<value>		OUT >
		public static const		CALL_LOG:String							= "v2/flashLog.php";				// IN > logMsg=<value>						OUT >
		public static const		CALL_GAME_HEARTBEAT:String				= "v2/play/heartbeat.php";			// IN > userID=<value>						OUT > -
		public static const		CALL_GAME_CONTROL:String				= "v2/play/gameControl.php";		// IN > request=<GamePhase.id>&userID=<gameID>&userID=<value>&password=<value>	TBD					OUT > -
		
		public static const		DEBUG_CALL_GAME_RESYNC:String			= "v2/play/getGameInfo.php";		// IN > userID=<value>&password=<value>		OUT >
		public static const		DEBUG_CALL_GAME_MAKE:String				= "v2/play/makeMatch.php";			// IN > userID=<value>&password=<value>&opponent=<userID>	OUT > -
		public static const		DEBUG_CALL_GAME_TURN:String				= "v2/play/getRoundLog.php";		// IN > userID=<value>&password=<value>		OUT > -
		
		// public static const		CALL_GAME_SUBSTITUTE:String				= "v2/play/substitute.php";			// IN > userID=<value> TBD					OUT > -
		// public static const		CALL_GAME_RESOLVE_SUBSTITUTE:String		= "v2/play/resolveSubstitute.php";	// IN > userID=<value> TBD					OUT > -
		// public static const		CALL_GAME_DISCARD:String				= "v2/play/discard.php";			// IN > userID=<value> TBD					OUT > -
		// public static const		CALL_GAME_RESOLVE_DISCARD:String		= "v2/play/resolveDiscard.php";		// IN > userID=<value> TBD					OUT > -
		// public static const		CALL_GAME_PLAY:String					= "v2/play/play.php";				// IN > userID=<value> TBD					OUT > -
		// public static const		CALL_GAME_RESOLVE_PLAY:String			= "v2/play/resolvePlay.php";		// IN > userID=<value> TBD					OUT > -
		
		// Timeout
		public static const		TIMEOUT:int								= 10; // 10sec
		
	}
}